﻿<div class="loginr">
    <section class="logo">
    		<img src="./img/logo.png"  />
    </section>
    <section class="login_box">
        <div class="lb_tab">
            <div ng-class="islogin==1?'lb_box active':'lb_box'" ng-click="islogin=1;showTwoError=false;">登陆绑定</div>
            <div ng-class="islogin==2?'lb_box active':'lb_box'" ng-click="islogin=2;showOneError=false;">注册绑定</div>
        </div>
        <!--注册-->


        <div class="lb_tabcontent" ng-show="islogin==1">
            <form name="LoginForm" ng-class="showOneError?'showerror':''">
                <div class="login_tabcontent ">
                    <div class="tab_input">
                        <input type="tel" placeholder="手机号" ng-model="login.telephone" ng-required="true"  ng-pattern="/^[1]\d{10}$/" />
                    </div>
                    <div class="tab_input">
                        <input type="password" placeholder="密码" ng-model="login.password" ng-required="true" ng-minlength="6"/>
                    </div>
                    <a class="login_btn" ng-click="Login(login)">登陆绑定</a>
                </div>
                
            </form>
        </div>

        <!--登陆-->

        <div class="lb_tabcontent"  ng-show="islogin==2">
            <form name="RegisterForm" ng-class="showTwoError?'showerror':''">
                <div class="register_tabcontent">
                    <div class="tab_input">
                        <input type="tel" placeholder="手机号" ng-required="true"  ng-pattern="/^[1]\d{10}$/" ng-model="register.telephone"/>
                    </div>
                    <div class="tab_box">
                        <div class="tab_yzm">
                            <input type="text" placeholder="验证码" ng-required="true" ng-model="register.code"/>
                        </div>
                        <div class="yzm_btn">
                            <a id="sendCodeBtn" ng-click="SendMsg(register.telephone)">获取验证码</a>
                        </div>
                    </div>
                    <div class="tab_input">
                        <input type="password" placeholder="密码" ng-required="true" ng-minlength="6" ng-model="register.password"/>
                    </div>
                    <a class="login_btn" ng-click="Regitster(register)">注册绑定</a>
                </div>
            </form>
        </div>

    </section>
</div>
